#pragma once
#include <opencv2/opencv.hpp>
#include <string>

class FFmpegDecoder {
public:
    FFmpegDecoder();
    ~FFmpegDecoder();
    bool open(const std::string& input_url);
    bool readFrame(cv::Mat& frame);
    void close();
    bool isOpened() const;
private:
    struct Impl;
    Impl* impl_;
};
